// SER example


 symberror = 0
        for channel in range(2):
            nbrOfSymbols = 15
            if FECMODE == pymlbertmgr.BERTMGR_FECMODE.BERTMGR_100G_KR4 or FECMODE == pymlbertmgr.BERTMGR_FECMODE.BERTMGR_50G_KP4:
                nbrOfSymbols = 15
            elif FECMODE == pymlbertmgr.BERTMGR_FECMODE.BERTMGR_100G_KR4 or FECMODE == pymlbertmgr.BERTMGR_FECMODE.BERTMGR_50G_KR4:
                nbrOfSymbols = 7
            print("channel: " , channel)
            print("\tenabled : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.enabled)
            print("\tenabledLinks : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.enabledLinks[channel])
            print("\tlockedLinks : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.lockedLinks[channel])
            print("\tTime: ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.Time[channel])
            print("\tBitCount : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.BitCount[channel])
            print("\tFEC_CorrectedBitCount_Interval : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.FEC_CorrectedBitCount_Interval[channel])
            print("\tFEC_CW_UnCorrectedCount_Interval : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.FEC_CW_UnCorrectedCount_Interval[channel])
            print("\tFEC_CW_CorrectedCount_Interval : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.FEC_CW_CorrectedCount_Interval[channel])
            print("\tFEC_CW_ProcessedCount_Interval : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.FEC_CW_ProcessedCount_Interval[channel])
            print("\tFEC_CW_UncorrectedErrorRate_Interval : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.FEC_CW_UncorrectedErrorRate_Interval[channel])
            print("\tAccumulatedFEC_CW_UnCorrectedCount : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_UnCorrectedCount[channel])
            print("\tAccumulatedFEC_CW_CorrectedCount : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_CorrectedCount[channel])
            print("\tAccumulatedFEC_CW_ProcessedCount : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_ProcessedCount[channel])
            print("\tAccumulatedFEC_CW_UncorrectedErrorRate : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_UncorrectedErrorRate[channel])
            print("\tAccumulatedFEC_Corrected_Ones : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_Corrected_Ones[channel])
            print("\tAccumulatedFEC_Corrected_Zeros : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData. AccumulatedFEC_Corrected_Zeros[channel])
            print("\tSER nSymbols : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.SER[channel].nSymbols)
            #print("\tSER InstantSER : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.SER[channel].InstantSER[0])
            #print("\tSER AccumulatedSER : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.SER[channel].AccumulatedSER[0])
            print("\tSymbol 0 : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_ProcessedCount[channel] - MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_CorrectedCount[channel] -MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_UnCorrectedCount[channel])
            for nbSER in range (nbrOfSymbols):
                print("\tSymbol ", nbSER + 1, " : ", "\tSER InstantSER : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.SER[channel].InstantSER[nbSER])
                print("\tSymbol ", nbSER + 1, " : ", "\tSER AccumulatedSER : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.SER[channel].AccumulatedSER[nbSER])
                print("\tSymbol ", nbSER + 1, " : ", "\tSER AccumulatedSER % : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.SER[channel].AccumulatedSER[nbSER] / (MEASBERDATA[DATACOUNT[0] - 1].realFecData. AccumulatedFEC_CW_ProcessedCount[channel])*100)
                if MEASBERDATA[DATACOUNT[0] - 1].realFecData.SER[channel].AccumulatedSER[nbSER] > 0:
                    symberror += 1
            print("\tSymbol over ", nbrOfSymbols, " = ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_UnCorrectedCount[channel])
            print("\tSymbError = ", symberror) 
            print("\tPost FEC SER ", float(MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_UnCorrectedCount[channel]) / float(MEASBERDATA[DATACOUNT[0] - 1].realFecData.AccumulatedFEC_CW_ProcessedCount[channel]))
            print("\tSER Margin = ", (float(nbrOfSymbols - symberror) / float(nbrOfSymbols)) * 100) 
            print("\tTotalBitCount : ", MEASBERDATA[DATACOUNT[0] - 1].realFecData.TotalBitCount[channel] ,"\n")